package com.example.demo.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.example.demo.VO.PermissionsVO;
import com.example.demo.entity.Permissions;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hanfei
 * @since 2020-04-08
 */
@Repository
public interface PermissionsMapper extends BaseMapper<Permissions> {
        List<Permissions> findByKey(Pagination page, @Param("key") String key);
        List<Permissions> findByKeyAndAll(Pagination page, @Param("key") String key, @Param("entity") Permissions entity);
        List<PermissionsVO> findall();
}
